package com.itheima.mapper1;

import com.itheima.pojo.Category;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author wuyiqiang
 * @2022/6/18 15:14
 */
@Mapper
public interface CategoryClientMapper {

    /**
     * 分类列表查询
     * @return
     */
    @Select("select * from category")
    @ResultMap("categoryMap")
    List<Category> selectAll();
}
